package com.online.websocketcluster.service;

import com.online.websocketcluster.service.impl.WxInterfaceServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 *   微信接口服务
 *   @author hsc
 *   @create 2018-04-24 10:35
 */
@FeignClient(name="wx-interface-server",fallback= WxInterfaceServiceImpl.class)
public interface WxInterfaceService {
    /**
     * 发送文本消息服务
     * @return
     */
    @RequestMapping(value="/sendText",method=RequestMethod.POST)
    Map sendText(@RequestBody Map map);

    /**
     * 发送图片消息服务
     * @return
     */
    @RequestMapping(value="/sendImage",method=RequestMethod.POST)
    Map sendImage(@RequestBody Map map);
}
